package cn.darkhorse.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author mao
 * 总计注解类
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ReportForm {
    /**
     * 数据类型
     * @return
     */
    public DateType dataType() default DateType.BIGDECIMAL;
    public enum DateType
    {
        BIGDECIMAL(0), INTEGER(1);
        private final int value;

        DateType(int value)
        {
            this.value = value;
        }

        public int value()
        {
            return this.value;
        }
    }
}
